<template>
    <div>
       <div class="cationhead">
           <div>
             <el-row :gutter="20">
                <el-col :span="4" style="margin-top: -13px;"><div class="grid-content bg-purple" >
                 <el-dropdown>
                  <span class="el-dropdown-link">{{title}}<i class="el-icon-arrow-down el-icon--right"></i></span>
                    <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item v-for="opt1 in option.opt1" ><span>{{opt1.text}}</span></el-dropdown-item>
                  </el-dropdown-menu>
                 </el-dropdown>
                </div>
                </el-col>
                <el-col :span="4" style="margin-top:-13px"><div class="grid-content bg-purple">
                <el-dropdown @command="handleCommand">
                  <span class="el-dropdown-link">{{title2}}<i class="el-icon-arrow-down el-icon--right"></i></span>
                    <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item   command="销量由高到低"><span>销量由高到低</span></el-dropdown-item>
                    <el-dropdown-item   command="销量由低到高"><span>销量由低到高</span></el-dropdown-item>
                  </el-dropdown-menu>
                 </el-dropdown>
                </div></el-col>
                  <el-col :span="16" :offset="16" style="padding-left: 17%;margin-top: -26px;font-size: 13px;"><span class="xsort">{{xlsort}}</span></el-col>
             </el-row>
           </div>
       </div>
       
       <div style=""></div>
        <div class="cationCenter">
               <ul class="cationCenterUl">
                   <li class="cationCenterli"   v-for="keys in shop" :keys="keys.index">
                       <div class="cationCenterlibox">
                           <div class="cationCenterimg">
                        <div style="border-top:1px solid  #ccc;"></div>
                        <img style="width: 222px;"  v-bind:src="keys[0]"></div>
                           <ul class="cationCenterimgli">
                               <li v-for="item in keys[1]">{{item.title}}</li>
                               <!-- <li>08-04</li>
                               <li>起发量:60箱</li> -->
                           </ul>
                       </div>
                       <div>
                           <ul class="yus">
                               <li>
                                   <span v-for="item in keys[2]">{{item.title}}</span>
                               </li>
                               <li>
                                   <span v-for="item in keys[3]">{{item.title}}</span>
                               </li>
                               <li>
                                   <span>{{keys[4]}}</span>
                                   <span style="float: right;font-size: 18px;margin-right: 7px;"><i class="fa fa-shopping-cart" style="font-size: 21px;"></i></span>
                               </li>
                           </ul>
                       </div>
                   </li>

             </ul>
           </div>
           <!-- 分页 -->
           <div style="float:right;margin-bottom:-9px"><el-pagination background layout="prev, pager, next" :total="1000"></el-pagination></div>
           <div style=" clear: both"></div>
    </div>
</template>

<script>
export default {
  data() {
    return {
      shop: [
        [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
         [
          
          require("../../assets/x1.jpg"),
          [{ title: "海外包邮" }, { title: "08-04" }, { title: "起发量:60箱" }],
          [
            { title: "渔市" },
            { title: "加拿大" },
            { title: "螯龙虾" },
            { title: "野生" }
          ],
          [{ title: "4.00~6.00磅/只(硬壳)" }, { title: "¥100.42 " },{ title: "/500g "}],
          // [{ title: "已售：1.6万+箱" }, { title: "" }],
          '已售：1.6万+箱'
        ],
      ],
      title: "发货日期",
      title2: "排序",
      xlsort: "销量由高到低",
      option: {
        opt1: [{ text: "全部" }, { text: "现货" }],
        opt2: [{ text: "销量由高到低" }, { text: "销量由低到高" }]
      }
    }
  },
  methods: {
    handleCommand(command) {
      var that = this;
      that.xlsort = command;
    }
  }
};
</script>

<style>
* {
  margin: 0px;
  padding: 0px;
}
.el-row {
  margin-bottom: 20px;
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.cationhead {
  width: 100%;
  height: 53px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}
.cationhead > div {
  width: 50%;
  padding-top: 1%;
  margin-left: 14.5%;
}
.grid-content {
  border-radius: 4px;
  min-height: 49px;
}
.el-dropdown-link {
  font-size: 15px;
  line-height: 49px;
}
.cationCenter {
  width: 1191px;
  height: 100%;
  margin: 7px auto;
}
.cationCenterUl {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}
.cationCenterli {
  flex: 1;
  width: 259px;
  height: 377px;
  background: #ffffff;
  margin-right: 10px;
  border: solid 0.02px #ccc;
  /* padding-top: 3px; */
  margin-top: 10px;
}
.cationCenterli:hover {
  box-shadow: 0 0 0.5px 0.5px #adaaaa;
}
.cationCenterUl li div {
  clear: both
}
.xsort {
  color: #6d6464;
}
.cationCenterlibox {
  width: 100%;
  height: 253px;
  border-bottom: 0.1px solid #ccc;
}
.cationCenterimg {
  width: 222px;
  margin: 0 auto;
}
.cationCenterimgli {
  margin-left: 43px;
}
.cationCenterimgli li {
  float: left;
  font-size: 13px;
  border: 0.3px solid #ccc;
  padding: 1px;
  text-align: center;
  line-height: 20px;
  margin-left: 3px;
  background: #ffffff;
}
.yus li:first-child {
  font-size: 14px;
  padding-left: 10px;
  padding-top: 6px;
  color: #333333;
}
.yus li:first-child span{
  margin-right: 5px;
}
.yus li:nth-child(2) {
  padding-top: 10px;
  padding-left: 10px;
  font-size: 14px;
  color: #333333;
}
.yus li:nth-child(2) span:nth-child(2) {
  font-size: 20px;
  padding-left: -5px;
  color: #0173fe;
}
.yus li:nth-child(2) span:nth-child(1){
 display: block;
}
.yus li:nth-child(3) {
  font-size: 14px;
  padding-left: 10px;
  padding-top: 10px;
  color: #777777;
}
</style>
